package operation;

import Beans.Student;
import User.User;
import Utils.SQLSentencePoll;
import dao.DataOperation;

/**
 * 显示个人信息的功能对象
 */
public class ShowPersonalInfo implements IOperation{
    @Override
    public boolean operate(User user) {
        System.out.println("+----------------- 显示个人信息 -----------------+");
        Student student = DataOperation.queryOne(Student.class, SQLSentencePoll.SpecifiedAccountInfoDisplay,
                user.getAccountId());
        System.out.println(student);
        System.out.println("+----------------------------------------------+");
        return true;
    }
}
